<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button id="on">开启</button>
    <button id="off">关闭</button>
    <script>
        // width = window.innerWidth;
        // height = window.innerHeight;
        // console.log(width);
        // console.log(height);
        // res = window.alert("提示");
        // res = window.prompt("请输入")
        // res = window.confirm("你幸福吗？")
        on.onclick=function(){
            window.open('https://www.yuque.com/u22183783?tab=following')
        }
        off.onclick=function(){
            window.close('https://www.yuque.com/u22183783?tab=following')
        }
        window.onresize  =function(){
            console.log('transform')
        }
        window.onscroll  =function(){
            console.log('transform')
        }
        // console.log(res);
    </script>
</body>

</html>